using Microsoft.EntityFrameworkCore;
using MvcDemo.Models;
namespace MvcDemo.Db
{
    public class Demo:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            var con="server=.;database=Demo;uid=sa;pwd=123456";
            builder.UseSqlServer(con);
        }
        public DbSet<Product> Product{get;set;}
        public DbSet<Category> Category{get;set;}

    }
}